﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace TVShows_EF5.Models
{
    [Table("Episodio")]
    public class Episodio
    {
        [Key]
        public long id { get; set; }

        [Required]
        [JsonIgnore]
        public virtual TVShow tvshow { get; set; }
        
        [Required]
        public int temporada { get; set; }
        
        [Required]
        public int capitulo { get; set; }

        [Required]
        public string trama { get; set; }

        public DateTime primeraEmision { get; set; }


    }
}
